<template>
  <div class="bottom">
    <p>{{ data.label }}</p>
    <p>{{ data.value }}</p>
    <p>
      <i :class="`iconfont ${data.icon}`"/>
      {{ data.subLabel }}
    </p>
  </div>
</template>

<script lang="ts"
        setup>
import type {ImgBottom} from '@/types/good'

defineProps<{
  data: ImgBottom
}>()
</script>

<style lang="less"
       scoped>
.bottom {
  p {
    width: 100px;
    text-align: center;

    &:nth-of-type(1) {
      color: #999999;
    }

    &:nth-of-type(2) {
      color: @priceColor;
      margin-top: 10px;
    }

    &:nth-of-type(3) {
      color: #666;
      margin-top: 10px;
      cursor: pointer;

      &:hover {
        color: @xtxColor;
      }

      i {
        color: @xtxColor;
      }
    }
  }
}
</style>